package cn.itcast.test;

import cn.itcast.domain.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * @author: cuisensen
 * data: 2018/6/11.
 * time: 15:56.
 */
//spring测试工具
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class Demo02 {
    @Resource(name="user")
    private User user;
    @Test
    public void test1(){
        System.out.println(user);
    }
}
